package com.finance.system.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by gly on 2017/4/7.
 */
@Data
public class SupplierReq {


    /**
     * 有效标记 1是 0否
     */
    private Integer state;

    /**
     * 供货商编码
     */
    @NotBlank(message = "供货商编码不能为空")
    @Length(max = 20, message = "供货商编码长度小于20")
    private String code;


    @NotBlank(message = "供货商名称不能为空")
    @Length(max = 10, message = "供货商名称小于10")
    private String name;

    /**
     * 是否组包按重计算 1是 0否
     */
    private Integer isCombined;

    private String groupId;

    private String groupName;

    private String groupCode;



}
